package dao

import "encoding/json"

type SystemLog struct {
	BaseModel
	Application string
	ExtId       string
	ExtName     string
	ExtType     string
	Content     string
	IpAddress   string
	UserId      string
}

func (c *SystemLog) TableName() string {
	return "system_log"
}

func (c *SystemLog) ToJsonStr() string {
	marshal, err := json.Marshal(c)
	if err != nil {
		return ""
	}
	return string(marshal)
}
